﻿using AutoMapper;
using S.Archives.Api.Application.Command;
using S.Archives.Api.Application.Command.Wander;
using S.Archives.Domain.S.ArchivesModel;
using System.Reflection;

namespace S.Archives.Api.Extensions.AutoMapper
{
    public class ReadProfile : Profile
    {
        public ReadProfile()
        {
            //如果有相同字段的类就写一个这个
            CreateMap<SheepFileCreateCommand, SheepFileModel>().ReverseMap();//从前往后传输相同字段的值
            CreateMap<SheepFileUpdateCommand, SheepFileModel>().ReverseMap();
            //流转表添加
            CreateMap<WanderCreateCommand, WanderModel>().ReverseMap();
        }
    }
}